import request from '@/utils/request'

// 查询调度首页信息列表
export function listDispatchIndex(query) {
  return request({
    url: '/system/dispatchIndex/list',
    method: 'get',
    params: query
  })
}

// 查询调度首页信息详细
export function getDispatchIndex(dispatchIndexId) {
  return request({
    url: '/system/dispatchIndex/' + dispatchIndexId,
    method: 'get'
  })
}

// 新增调度首页信息
export function addDispatchIndex(data) {
  return request({
    url: '/system/dispatchIndex',
    method: 'post',
    data: data
  })
}

// 修改调度首页信息
export function updateDispatchIndex(data) {
  return request({
    url: '/system/dispatchIndex',
    method: 'put',
    data: data
  })
}

// 删除调度首页信息
export function delDispatchIndex(dispatchIndexId) {
  return request({
    url: '/system/dispatchIndex/' + dispatchIndexId,
    method: 'delete'
  })
}
